package com.ruoyi.siyun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.siyun.mapper.SyRealNameAuthMapper;
import com.ruoyi.siyun.domain.SyRealNameAuth;
import com.ruoyi.siyun.service.ISyRealNameAuthService;

/**
 * 实名认证Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-25
 */
@Service
public class SyRealNameAuthServiceImpl implements ISyRealNameAuthService 
{
    @Autowired
    private SyRealNameAuthMapper syRealNameAuthMapper;

    /**
     * 查询实名认证
     * 
     * @param id 实名认证主键
     * @return 实名认证
     */
    @Override
    public SyRealNameAuth selectSyRealNameAuthById(Long id)
    {
        return syRealNameAuthMapper.selectSyRealNameAuthById(id);
    }

    /**
     * 查询实名认证列表
     * 
     * @param syRealNameAuth 实名认证
     * @return 实名认证
     */
    @Override
    public List<SyRealNameAuth> selectSyRealNameAuthList(SyRealNameAuth syRealNameAuth)
    {
        return syRealNameAuthMapper.selectSyRealNameAuthList(syRealNameAuth);
    }

    /**
     * 新增实名认证
     * 
     * @param syRealNameAuth 实名认证
     * @return 结果
     */
    @Override
    public int insertSyRealNameAuth(SyRealNameAuth syRealNameAuth)
    {
        return syRealNameAuthMapper.insertSyRealNameAuth(syRealNameAuth);
    }

    /**
     * 修改实名认证
     * 
     * @param syRealNameAuth 实名认证
     * @return 结果
     */
    @Override
    public int updateSyRealNameAuth(SyRealNameAuth syRealNameAuth)
    {
        return syRealNameAuthMapper.updateSyRealNameAuth(syRealNameAuth);
    }

    /**
     * 批量删除实名认证
     * 
     * @param ids 需要删除的实名认证主键
     * @return 结果
     */
    @Override
    public int deleteSyRealNameAuthByIds(Long[] ids)
    {
        return syRealNameAuthMapper.deleteSyRealNameAuthByIds(ids);
    }

    /**
     * 删除实名认证信息
     * 
     * @param id 实名认证主键
     * @return 结果
     */
    @Override
    public int deleteSyRealNameAuthById(Long id)
    {
        return syRealNameAuthMapper.deleteSyRealNameAuthById(id);
    }
}
